package com.xinzhi.stduyspringboot.conf;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Component
@Order(1)
public class CommandRdunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
//这里可以做一些事情比如redis预热，系统检查等工作
        System.out.println("commandOne---->" + Arrays.toString(args));
    }


}
